 
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>基于 layui 的极简社区页面模版</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="论坛是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="/static/bbs/res/layui/css/layui.css">
  <link rel="stylesheet" href="/static/bbs/res/css/global.css">
</head>
<body>

{% include '/bbs/common/header.html' %}

{% include '/bbs/common/column.html' %}

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
    	
    	<!--置顶start-->
    	{% if topArticleListAndUser %}
    	<div class="fly-panel">
        <div class="fly-panel-title fly-filter">
          <a>置顶</a>
          <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">去签到</a>
        </div>
        <ul class="fly-list">
        	{% for u in topArticleListAndUser %}
          <li>
            <a href="user/home.html?id={{u.B.id}}" class="fly-avatar">
              <img src="{{u.B.avator}}" alt="作者">
            </a>
            <h2>
              <a class="layui-badge">话题</a>
              <a href="/bbs/post/{{u.A.id}}">{{u.A.title}}</a>
            </h2>
            <div class="fly-list-info">
              <a href="user/home.html?id={{u.A.authorid}}" link="">
                <!--cite>作者</cite>
                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i-->
                <!--i class="layui-badge fly-badge-vip">VIP3</i-->
              </a>
              <span>{{u.A.time}}</span>
              
              <!--span class="fly-list-nums"> 
                <i class="iconfont icon-pinglun1" title="回答"></i> 
              </span-->
            </div>
            <div class="fly-list-badge">
              
              <span class="layui-badge layui-bg-black">置顶</span>
              <!--<span class="layui-badge layui-bg-red">精帖</span>
              -->
            </div>
          </li>
          {% endfor %}

        </ul>
      </div>
      {% endif %}
    	<!--置顶end-->
    	
    	<!--帖子区start-->
      <div class="fly-panel" style="margin-bottom: 0;">
        
        {% include '/bbs/common/filter.html' %}

        <ul class="fly-list">  
        	 {% for u in posts %}      
          <li>
            <a href="user/home.html" class="fly-avatar">
              <img src="{{u.B.avator}}" alt="作者">
            </a>
            <h2>
              <a class="layui-badge">话题</a>
              <a href="/bbs/post/{{u.A.id}}">{{u.A.title}}</a>
            </h2>
            <div class="fly-list-info">
              <a href="user/home.html?id={{u.B.id}}" link>
                <cite>{{u.B.nickname}}</cite>
                <!--
                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                <i class="layui-badge fly-badge-vip">VIP3</i>
                -->
              </a>
              <span>{{u.A.time}}</span>
              
              <!-- span class="fly-list-kiss layui-hide-xs" title="悬赏金币"><i class="iconfont icon-zan"></i> {{u.A.popularity}}</span>
              <!--<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>-->
              <span class="fly-list-nums"> 
                <i class="iconfont icon-pinglun1" title="回答"></i> {{u.A.popularity}}
              </span>
            </div>
            <div class="fly-list-badge">
              <!--span class="layui-badge layui-bg-black">置顶</span>
              <<span class="layui-badge layui-bg-red">精帖</span>-->
            </div>
          </li>
          {% endfor %}
          

        </ul>
        
        <!-- <div class="fly-none">没有相关数据</div> -->
    	   <!-- 页码start-->
        <div style="text-align: center">
          <div class="laypage-main">
          	<a href="/bbs/area/{{viewObject.areano}}/page/1{{viewObject.argString}}" class="laypage-last" title="首页">首页</a>
          	{% if  viewObject.lastPage>0 %}
          		<a href="/bbs/area/{{viewObject.areano}}/page/{{viewObject.lastPage}}{{viewObject.argString}}" class="laypage-last" title="上一页">上一页</a>
          	{% endif %}
          	
          	{% for u in pageList %}
	          	{% if u==viewObject.currentPage %}
	          	<span class="laypage-curr">{{viewObject.currentPage}}</span>
	          	{% else %}
	          	<a href="/bbs/area/{{viewObject.areano}}/page/{{u}}{{viewObject.argString}}">{{u}}</a>
	          	{% endif %}
          	{% endfor %}
          	
          	{% if  viewObject.lastPage>5 %}
          	<span>…</span>
          	{% endif %}

          	<a href="/bbs/area/{{viewObject.areano}}/page/{{viewObject.maxPageNum}}{{viewObject.argString}}" class="laypage-last" title="尾页">尾页</a>
          	{% if  viewObject.nextPage<=viewObject.maxPageNum %}
          	<a href="/bbs/area/{{viewObject.areano}}/page/{{viewObject.nextPage}}{{viewObject.argString}}" class="laypage-next">下一页</a>
			{% endif %}
   
          	</div>
        </div>
	 <!-- 页码end-->
      </div>
	 <!--帖子区end-->      

    </div>
    
    <!--右侧start-->
    <div class="layui-col-md4">
      
      {% include '/bbs/common/populartopic.html' %}

      {% include '/bbs/common/recommend.html' %}
      
      <div class="fly-panel fly-link">
        <h3 class="fly-panel-title">友情链接</h3>
        <dl class="fly-panel-main">
          <dd><a href="http://www.layui.com/" target="_blank">layui</a><dd>
          <dd><a href="http://layim.layui.com/" target="_blank">WebIM</a><dd>
          <dd><a href="http://layer.layui.com/" target="_blank">layer</a><dd>
          <dd><a href="http://www.layui.com/laydate/" target="_blank">layDate</a><dd>
          <dd><a href="mailto:xianxin@layui-inc.com?subject=%E7%94%B3%E8%AF%B7Fly%E7%A4%BE%E5%8C%BA%E5%8F%8B%E9%93%BE" class="fly-link">申请友链</a><dd>
        </dl>
      </div>

    </div>
    <!--右侧end-->
  </div>
</div>

{% include '/bbs/common/footer.html' %}

<script src="/static/bbs/res/layui/layui.js"></script>
<script>
layui.cache.page = 'jie';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '/static/bbs/res/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "3.0.0"
  ,base: '/static/bbs/res/mods/'
}).extend({
  fly: 'index'
}).use('fly');
</script>

</body>
</html>